//
//  XASweepCodeManager.h
//  ZDSweepCodeSDK
//
//  Created by by on 2021/7/30.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface XASweepCodeManager : NSObject

/// alipay支付回调
/// @param resultDic 支付结果
+ (void)alipayCompletion:(NSDictionary *)resultDic;

/// 用户基本信息
/// @param phone 手机号
/// @param token token令牌
/// @param userId 用户唯一标识
+ (void)registerPhone:(NSString *)phone token:(NSString *)token userId:(NSString *)userId;

/// 集成支付宝支付的AppId
/// @param appId 支付宝平台注册的appId
+ (void)registerAliPayWithAppId:(NSString *)appId;

/// 支付宝支付回调回应用的URL Scheme
/// @param appScheme 项目中配置的URL Scheme
+ (void)registerAppSchemeForAliPay:(NSString *)appScheme;

/// 集成微信支付的AppId
/// @param appId 微信平台注册的appId
+ (void)registerWeChatPayWithAppId:(NSString *)appId;

/// 调起SDK扫码页面的入口
/// @param vc 当前VC
/// @param rootVC keyWindow的RootVC
+ (void)goSweepCode:(UIViewController *)vc keyWindowRootVC:(UIViewController *)rootVC;

@end

NS_ASSUME_NONNULL_END
